﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace SplendidCRM.Controls
{
    public class Wrapper : SplendidControl
    {
        public String Module
        {
            get { return m_sMODULE; }
            set { m_sMODULE = value; }
        }

        [TemplateContainer(typeof(Wrapper))]
        [PersistenceMode(PersistenceMode.InnerProperty)]
        [TemplateInstance(TemplateInstance.Single)]
        public ITemplate Template { get; set; }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (Template != null) Template.InstantiateIn(this);
        }
    }
}